use chrono::Local;
use uuid::Uuid;

pub fn random_id() -> String {
    let mut buf = [b'!'; 36];
    Uuid::new_v4().simple().encode_lower(&mut buf).to_string()
}

pub fn current_datetime() -> chrono::NaiveDateTime {
    Local::now().naive_local()
}